﻿using GroceryPriceBook.Core.Mappers;
using GroceryPriceBook.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;

namespace GroceryPriceBook
{
	public class MvcApplication : System.Web.HttpApplication
	{
		protected void Application_Start()
		{
			AreaRegistration.RegisterAllAreas();
			RouteConfig.RegisterRoutes(RouteTable.Routes);
			BundleConfig.RegisterBundles(BundleTable.Bundles);

			// Run the mappings to handle ViewModel <==> Model mappings
			AutoMapperConfiguration.Configure();
		}
	}
}
